package com.yuexun.beilunpatient.ui.my.model.impl;


import com.yuexun.beilunpatient.ui.bean.BaseListEntity;
import com.yuexun.beilunpatient.ui.my.api.UpdateUsrMsgApi;
import com.yuexun.beilunpatient.ui.my.model.IUpdateUsrMsgModel;
import com.yuexun.beilunpatient.utils.ApiUtil;

import java.util.Map;

import rx.Observable;

/**
 * Created by chenss on 2018/8/8 0008.
 */

public class UpdateUsrMsgModel implements IUpdateUsrMsgModel {

    private UpdateUsrMsgApi api;

    public UpdateUsrMsgApi ApiInstance() {
        if (api != null) {
            return api;
        } else {
            return ApiUtil.getInstance().createRetrofitApi(UpdateUsrMsgApi.class);
        }
    }

    @Override
    public Observable<BaseListEntity> updateOaAccount(Map<String, String> praise) {
        api = ApiInstance();
        return api.updateOaAccount(praise);
    }
}
